/**
 * 通用类型定义
 */

export interface BaseResponse<T = any> {
  code: number
  message: string
  data: T
  timestamp?: number
}

export interface PaginationParams {
  page: number
  pageSize: number
}

export interface PaginationResponse<T> {
  list: T[]
  total: number
  page: number
  pageSize: number
}

export interface SelectOption {
  label: string
  value: string | number
  disabled?: boolean
}

export type LoadingState = 'idle' | 'loading' | 'success' | 'error'